import React, {Component} from 'react';
import {
    View, Text, Button
} from 'react-native';

import UserBanner from '../../components/UserBanner';


export default class UserScreen extends Component {
    render() {
        console.log('>>>user index', this.props.navigation.params)
        return (
            <View>
                <UserBanner navigation={this.props.navigation} />
                <Text>User index page</Text>
                <Button
                    title="Go to login page"
                    onPress={() => this.props.navigation.navigate('auth.login')}
                />
                <Button
                    title="Go to register page"
                    onPress={() => this.props.navigation.navigate('auth.register')}
                />
            </View>
        );
    }
}